import UIKit

let numbers = [1, 2, 3, 4, 5]

let n1 = numbers.map { item in
  item * 2
}

print(n1)

let n2 = numbers.filter { i in
  i > 3
}

print(n2)

let n3 = numbers.reduce(0) { partialResult, next in
	partialResult + next
}

print(n3)
